const { router } = require('../../koa/koa-main')
const { editComment } = require('../../services/comment')

router.post('/editComment', async (ctx, next) => {
  const { data } = await editComment(ctx.request.body)
  ctx.response.body = data
  await next()
})
